home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_02
/
1002026b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1991-12-03
|
278 b
|
23 lines
#include <stdio.h>
main()
{
int a = 8, b = 2, c = 6, d = 3;
push(a);
push(b);
add(); /* t1 = a + b */
push(c);
push(d);
subtract(); /* t2 = c - d */
multiply(); /* t3 = t1 * t2 */
printf("Result = %d\n", pop());
return 0;
}
Result = 30